package com.example.taobaolianmeng.utils;

import com.example.taobaolianmeng.presenter.ICategoryPagerPresenter;
import com.example.taobaolianmeng.presenter.IHomePresenter;
import com.example.taobaolianmeng.presenter.IOnSellPagePresenter;
import com.example.taobaolianmeng.presenter.ISelectedPagePresenter;
import com.example.taobaolianmeng.presenter.ITicketPresenter;
import com.example.taobaolianmeng.presenter.impl.CategoryPagePresenterImpl;
import com.example.taobaolianmeng.presenter.impl.HomePresenterImpl;
import com.example.taobaolianmeng.presenter.impl.OnSellPagePresenterImpl;
import com.example.taobaolianmeng.presenter.impl.SearchPagePresenterImpl;
import com.example.taobaolianmeng.presenter.impl.SelectedPagePresenterImpl;
import com.example.taobaolianmeng.presenter.impl.TicketPresenterImpl;

public class PresenterManger {
    private static final PresenterManger ourInstance = new PresenterManger();
    private final ICategoryPagerPresenter mCategoryPagePresenter;
    private final IHomePresenter mHomePresenter;
    private final ITicketPresenter mTicketPresenter;
    private final ISelectedPagePresenter mSelectedPagePresenter;
    private final IOnSellPagePresenter mOnSellPagePresenter;
    private final SearchPagePresenterImpl mSearchPagePresenter;

    public ITicketPresenter getTicketPresenter() {
        return mTicketPresenter;
    }

    public IHomePresenter getHomePresenter() {
        return mHomePresenter;
    }

    public ICategoryPagerPresenter getCategoryPagePresenter() {
        return mCategoryPagePresenter;
    }

    public static PresenterManger getInstance() {
        return ourInstance;
    }

    public ISelectedPagePresenter getSelectedPagePresenter() {
        return mSelectedPagePresenter;
    }

    public IOnSellPagePresenter getOnSellPagePresenter() {
        return mOnSellPagePresenter;
    }

    public SearchPagePresenterImpl getSearchPagePresenter() {
        return mSearchPagePresenter;
    }

    private PresenterManger() {
        mCategoryPagePresenter = new CategoryPagePresenterImpl();
        mHomePresenter = new HomePresenterImpl();
        mTicketPresenter = new TicketPresenterImpl();
        mSelectedPagePresenter = new SelectedPagePresenterImpl();
        mOnSellPagePresenter = new OnSellPagePresenterImpl();
        mSearchPagePresenter = new SearchPagePresenterImpl();
    }
}
